export function getSelectList(obj) {
    let arr = [];
    if (undefined != obj && null != obj) {
        for (let key in obj) {
            arr.push({value: key, label: obj[key]})
        }
    }
    return arr;
}

const taskConstants = {
    RouteId: {
        //核保待分配
        "hbassign": "hbassign",
        //照会回复待分配
        "pdassign": "pdassign",
        //再保处理
        "zbcl": "zbcl",
        //核保
        "hebao": "hebao",
        //照会回复
        "yhzhhf": "yhzhhf",
        //照会待回复
        "zhaohui": "zhaohui",
        //客户资料修改
        "clientinfo": "clientinfo",
        //集汇件
        "jihui": "jihui",
        //集汇件审核
        "vecheck": "vecheck",
        //特别事项
        "tbsx": "tbsx",
        //成品保单修正
        "cpbdxz": "cpbdxz",
        //end单
        "end": "end",
        //UWwaiting 电子批处理
        "IUWwaiting": "IUWwaiting",
        //续期核保
        "renewal_hebao": "renewal_hebao",
        //续期照会回复
        "renewal_zhhf": "renewal_zhhf",
        //续期照会待回复
        "renewal_zhaohui": "renewal_zhaohui",
        //续期end单
        "renewal_end": "renewal_end",
        //承保后调查 待处理
        "ingat_dcl": "ingat_dcl",
        //承保后调查已处理;
        "ingat_end": "ingat_end",
        //保全核保;
        "pos_checking": "checking",
        //保全核保照会
        "pos_checkpanding": "checkpanding",
        //保全核保照会回复
        "pos_checkpandreturn": "checkpandreturn",
        //理赔二核
        "clm_underwrite": "underwrite",
        //新契约待处理
        "hbybdo": "hbybdo",
        //新契约照会待回复
        "hbybzh": "hbybzh",
        //保全待处理
        "bqybdo": "bqybdo",
        //保全待照会回复
        "bqybzh": "bqybzh",
        //end单
        "yb_end":"yb_end",
    },
    nbPoolType: {
        //新单核保
        "NEW": "NEW",
        //特别事项
        "TBSX": "TBSX",
        //资料修正
        "ZLXZ": "ZLXZ",
        //再保处理
        "ZBCL": "ZBCL",
        //集汇件
        "TEAM": "TEAM",
        //end单
        "END": "END",
        //待照会回复
        "DZHHF": "DZHHF",
    },
    renewalPoolType: {
        //续期核保
        "HEBAO": "HEBAO",
        //end单
        "END": "END",
        //待照会回复
        "DZHHF": "DZHHF",
    },
    posPoolType: {
        //保全核保
        "posuwlist": "posuwlist",
        //保全核保照会
        "posuwnote": "posuwnote",
        //保全核保照会回复
        "posuwnoteb":"posuwnoteb",
    },
    bankPoolType: {
        //新契约待处理
        "hbybdo": "hbybdo",
        //新契约照会待回复
        "hbybzh": "hbybzh",
        //end单
        "yb_end":"yb_end",
    },
    taskBusitype: {
        //新契约
        "NB": "NB",
        //续期
        "REAL": "REAL",
        //承保后调查
        "INAF": "INAF",
        //保全
        "POS": "POS",
        //理赔
        "CLM": "CLM",
        //银保通核对
        "YBNB": "YBNB",
    },
    appFrom: {
        "1": "电子单",
        "2": "纸质单",
    },
    archtype: {
        "1": "1-5年期附约续核",
        "2": "2-CLM提起核保",
        "4": "4-人工抽检核保"
    },
    clmstate: {
        "D-身故": "D-身故",
        "T-全残": "T-全残",
        "P-部分残废": "P-部分残废",
        "C-重大疾病": "C-重大疾病",
        "N-一般医疗": "N-一般医疗",
        "S-慰问金": "S-慰问金",
    },
    clmstateClm: [
        {
			label:'D-身故',
			value:'D'
		},
        {
			label:'T-全残',
			value:'T'
		},
        {
			label:'P-部分残废',
			value:'P'
		},
        {
			label:'C-重大疾病',
			value:'C'
		},
        {
			label:'N-一般医疗',
			value:'N'
		},
        {
			label:'S-慰问金',
			value:'S'
		},
    ],
    clmFlag06: {
        "3": "小额件",
        "2": "高端客户件",
        "6": "AAA",
        "5": "AA",
        "4": "A",
    },
    clmFlag06Clm: [
        {
			label:'小额件',
			value:'3'
		},
        {
			label:'高端客户件',
			value:'2'
		},
        {
			label:'AAA',
			value:'6'
		},
        {
			label:'AA',
			value:'5'
		},
        {
			label:'A',
			value:'4'
		},
    ] 
    ,
    bankRiskType: {
        "1": "传统寿险",
        "2": "意外险",
        "3": "投资连结",
        "4": "银行险",
        "5": "重填",
        "6": "变更",
        "7": "VIP件",
        "8": "绩优agent",
        "9": "CBV",
        "10":  "电子投保",
    },
	preChannelType:[
		{
			name:'AG',
			value:'AG'
		},
		{
			name:'DM',
			value:'DM'
		},
		{
			name:'BD',
			value:'BD'
		},
		{
			name:'FC',
			value:'FC'
		},
		{
			name:'TM',
			value:'TM'
		},
		{
			name:'BA',
			value:'BA'
		},
		{
			name:'EB',
			value:'EB'
		}
	]
};
export default taskConstants;
